home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Simple / metacity-1 / metacity-theme-1.xml < prev    next >
Encoding:
Extensible Markup Language  |  2009-05-14  |  14.3 KB  |  347 lines

  1. <?xml version="1.0"?>
  2. <metacity_theme>
  3. <info>
  4.   <name>Simple</name>
  5.   <author>Tuomas Kuosmanen <tigert@ximian.com></author>
  6.   <copyright> Tuomas Kuosmanen, 2002, based on Atlanta theme by Havoc.</copyright>
  7.   <date>April, 2002</date>
  8.   <description>Default GNOME window theme</description>
  9. </info>
  10.  
  11. <frame_geometry name="normal">
  12.   <distance name="left_width" value="4"/>
  13.   <distance name="right_width" value="4"/>
  14.   <distance name="bottom_height" value="4"/>
  15.   <distance name="left_titlebar_edge" value="2"/>
  16.   <distance name="right_titlebar_edge" value="2"/>
  17.   <distance name="button_width" value="16"/>
  18.   <distance name="button_height" value="16"/>
  19.   <distance name="title_vertical_pad" value="0"/>
  20.   <border name="title_border" left="1" right="1" top="2" bottom="2"/>
  21.   <border name="button_border" left="1" right="1" top="0" bottom="0"/>
  22. </frame_geometry>
  23.  
  24. <!-- strip borders off the normal geometry -->
  25. <frame_geometry name="normal_small_borders" parent="normal">
  26.   <distance name="left_width" value="0"/>
  27.   <distance name="right_width" value="0"/>
  28.   <distance name="bottom_height" value="0"/>
  29.   <distance name="left_titlebar_edge" value="0"/>
  30.   <distance name="right_titlebar_edge" value="0"/>
  31. </frame_geometry>
  32.  
  33. <frame_geometry name="utility" title_scale="xx-small">
  34.   <distance name="left_width" value="3"/>
  35.   <distance name="right_width" value="3"/>
  36.   <distance name="bottom_height" value="4"/>
  37.   <distance name="left_titlebar_edge" value="3"/>
  38.   <distance name="right_titlebar_edge" value="3"/>
  39.   <distance name="button_width" value="16"/>
  40.   <distance name="button_height" value="16"/>
  41.   <distance name="title_vertical_pad" value="1"/>
  42.   <border name="title_border" left="3" right="4" top="3" bottom="3"/>
  43.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  44. </frame_geometry>
  45.  
  46. <frame_geometry name="border" has_title="false">
  47.   <distance name="left_width" value="4"/>
  48.   <distance name="right_width" value="4"/>
  49.   <distance name="bottom_height" value="4"/>
  50.   <distance name="left_titlebar_edge" value="0"/>
  51.   <distance name="right_titlebar_edge" value="0"/>
  52.   <distance name="button_width" value="0"/>
  53.   <distance name="button_height" value="0"/>
  54.   <distance name="title_vertical_pad" value="4"/>
  55.   <border name="title_border" left="0" right="0" top="0" bottom="0"/>
  56.   <border name="button_border" left="0" right="0" top="0" bottom="0"/>
  57. </frame_geometry>
  58.  
  59. <!-- define constants -->
  60. <constant name="ArrowWidth" value="8"/>
  61. <constant name="ArrowHeight" value="4"/>
  62. <constant name="ButtonIPad" value="4"/>
  63. <constant name="ThickLineWidth" value="3"/>
  64. <constant name="IconTitleSpacing" value="6"/>
  65. <constant name="SpacerWidth" value="2"/>
  66. <constant name="SpacerHeight" value="10"/>
  67.  
  68. <!-- Buttons -->
  69.  
  70. <draw_ops name="button_pressed_bg">
  71.   <rectangle color="gtk:light[NORMAL]" filled="true"
  72.              x="1" y="1" width="width" height="height"/>
  73.   <rectangle color="gtk:dark[NORMAL]" filled="true"
  74.              x="0" y="0" width="width - 1" height="height - 1"/>
  75.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.9" filled="true"
  76.              x="1" y="1" width="width - 2" height="height - 2"/>
  77.   <!-- gtk_box state="active" shadow="out" x="0" y="0" width="width" height="height"/ -->
  78. </draw_ops>
  79.  
  80. <draw_ops name="menu_button">
  81.   <icon  x="1"
  82.          y="1"
  83.          width="width-2" height="height-2"/>
  84. </draw_ops>
  85.  
  86. <draw_ops name="menu_button_pressed">
  87.   <include name="menu_button"/>
  88. </draw_ops>
  89.  
  90. <draw_ops name="minimize_button">
  91.   <line color="gtk:fg[NORMAL]"
  92.         x1="ButtonIPad"
  93.         y1="height - ButtonIPad - ThickLineWidth + 3"
  94.         x2="width"
  95.         y2="height - ButtonIPad - ThickLineWidth + 3"
  96.         width="2"/>
  97. </draw_ops>
  98.  
  99. <draw_ops name="minimize_button_pressed">
  100.   <include name="button_pressed_bg"/>
  101.   <include name="minimize_button"/>
  102. </draw_ops>
  103.  
  104. <draw_ops name="maximize_button">
  105.   <rectangle color="gtk:fg[NORMAL]" filled="false"
  106.              x="ButtonIPad" y="ButtonIPad" width="width-ButtonIPad*2 + 2" 
  107.              height="height-ButtonIPad*2 + 1"/>
  108.   <line color="gtk:fg[NORMAL]" width="2"
  109.         x1="ButtonIPad" y1="ButtonIPad+1" x2="width-ButtonIPad + 2" 
  110.         y2="ButtonIPad+2"/>
  111. </draw_ops>
  112.  
  113. <draw_ops name="maximize_button_pressed">
  114.   <include name="button_pressed_bg"/>
  115.   <include name="maximize_button"/>
  116. </draw_ops>
  117.  
  118. <draw_ops name="mini_window_icon">
  119.   <rectangle color="gtk:bg[NORMAL]" filled="true"
  120.              x="0" y="0" width="width-1" height="height-1"/>
  121.   <rectangle color="gtk:fg[NORMAL]" filled="false"
  122.              x="0" y="0" width="width-1" height="height-1"/>
  123.   <line color="gtk:fg[NORMAL]" width="2" x1="0" y1="1" x2="width" y2="1"/>
  124. </draw_ops>
  125.  
  126. <draw_ops name="restore_button">
  127.   <include name="mini_window_icon"
  128.            x="3 + ButtonIPad" y="3 + ButtonIPad"
  129.            width="width - 5 - ButtonIPad"
  130.            height="height - 5 - ButtonIPad"/>
  131.   <include name="mini_window_icon"
  132.            x="ButtonIPad" y="ButtonIPad"
  133.            width="width - 5 - ButtonIPad"
  134.            height="height - 5 - ButtonIPad"/>
  135. </draw_ops>
  136.  
  137. <draw_ops name="restore_button_pressed">
  138.   <include name="button_pressed_bg"/>
  139.   <include name="restore_button"/>
  140. </draw_ops>
  141.  
  142. <draw_ops name="close_button">
  143.   <line color="gtk:fg[NORMAL]"
  144.         x1="ButtonIPad" y1="ButtonIPad"
  145.         x2="width - ButtonIPad + 1" y2="height - ButtonIPad + 1" width="3"/>
  146.   <line color="gtk:fg[NORMAL]"
  147.         x1="ButtonIPad - 1" y1="height - ButtonIPad"
  148.         x2="width - ButtonIPad + 1" y2="ButtonIPad" width="3"/>
  149. </draw_ops>
  150.  
  151. <draw_ops name="close_button_pressed">
  152.   <include name="button_pressed_bg"/>
  153.   <include name="close_button"/>
  154. </draw_ops>
  155.  
  156. <draw_ops name="outer_bevel">
  157.   <rectangle color="gtk:fg[NORMAL]"
  158.              x="0" y="0" width="width" height="height" filled="true"/>
  159.   <rectangle color="gtk:bg[NORMAL]"
  160.              x="1" y="1" width="width-2" height="height-2" filled="true"/>
  161.   <line color="gtk:light[NORMAL]"
  162.         x1="1" y1="1" x2="1" y2="height-3"/>
  163.   <line color="gtk:light[NORMAL]"
  164.         x1="1" y1="1" x2="width-3" y2="1"/>
  165.   <line color="gtk:dark[NORMAL]"
  166.         x1="width-2" y1="2" x2="width-2" y2="height-2"/>
  167.   <line color="gtk:dark[NORMAL]"
  168.         x1="2" y1="height-2" x2="width-3" y2="height-2"/>        
  169. </draw_ops>
  170.  
  171. <draw_ops name="blank">
  172. <!-- nothing -->
  173. </draw_ops>
  174.  
  175. <draw_ops name="focus_outline">
  176.   <rectangle color="gtk:dark[NORMAL]"
  177.              x="left_width-1" y="top_height-1"
  178.              width="width-left_width-right_width+1"
  179.              height="height-top_height-bottom_height+1"/>
  180. </draw_ops>
  181.  
  182. <draw_ops name="focus_background">
  183.   <include name="outer_bevel"/>
  184. </draw_ops>
  185.  
  186. <draw_ops name="title_tile">
  187.   <line color="gtk:bg[SELECTED]" x1="0" y1="0" x2="width" y2="0"/>
  188.   <line color="blend/gtk:bg[SELECTED]/#000000/0.1" x1="0" y1="1" x2="width" y2="1"/>
  189. </draw_ops>
  190.  
  191. <draw_ops name="title_tile_unfocused">
  192.   <line color="blend/gtk:bg[NORMAL]/#000000/0.1" x1="0" y1="0" x2="width" y2="0"/>
  193.   <line color="blend/gtk:bg[NORMAL]/#ffffff/0.2" x1="0" y1="1" x2="width" y2="1"/>
  194. </draw_ops>
  195.  
  196. <draw_ops name="title_bg">
  197.   <tile name="title_tile" tile_width="width" tile_height="2" x="0" y="0" width="width" height="height"/>
  198.   <rectangle color="blend/gtk:bg[SELECTED]/#000000/0.6" filled="false" x="0" y="0" width="width-1" height="height-1"/>
  199.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.5" filled="true" x="0" y="0" width="1" height="1"/>
  200.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.5" filled="true" x="width-1" y="0" width="1" height="1"/>
  201.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.5" filled="true" x="0" y="height-1" width="1" height="1"/>
  202.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.5" filled="true" x="width-1" y="height-1" width="1" height="1"/>
  203. </draw_ops>
  204.  
  205. <draw_ops name="title_bg_unfocused">
  206.   <tile name="title_tile_unfocused" tile_width="width" tile_height="2" x="0" y="0" width="width-1" height="height-1"/>
  207.   <rectangle color="blend/#000000/gtk:fg[NORMAL]/0.7" filled="false" x="0" y="0" width="width-1" height="height-1"/>
  208.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.8" filled="true" x="0" y="0" width="1" height="1"/>
  209.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.8" filled="true" x="width-1" y="0" width="1" height="1"/>
  210.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.8" filled="true" x="0" y="height-1" width="1" height="1"/>
  211.   <rectangle color="blend/#000000/gtk:bg[NORMAL]/0.8" filled="true" x="width-1" y="height-1" width="1" height="1"/>
  212. </draw_ops>
  213.  
  214. <draw_ops name="title_text_focused">
  215.   <clip x="0" y="0" width="width-SpacerWidth" height="height"/>
  216.   <title color="blend/gtk:fg[SELECTED]/#000000/0.7"
  217.          x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing + 1"
  218.          y="((height - title_height) / 2) `max` 0 + 1"/>
  219.   <title color="gtk:fg[SELECTED]"
  220.          x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
  221.          y="((height - title_height) / 2) `max` 0"/>
  222. </draw_ops>
  223.  
  224. <draw_ops name="title_text">
  225.   <clip x="0" y="0" width="width-SpacerWidth" height="height"/>
  226.   <title color="gtk:fg[NORMAL]"
  227.          x="(0 `max` (width-title_width-mini_icon_width-IconTitleSpacing)) / 2 + mini_icon_width + IconTitleSpacing"
  228.          y="((height - title_height) / 2) `max` 0"/>
  229. </draw_ops>
  230.  
  231. <draw_ops name="title_normal">
  232.   <include name="title_bg_unfocused"/>
  233.   <include name="title_text"/>
  234. </draw_ops>
  235.  
  236. <draw_ops name="title_focused">
  237.   <include name="title_bg"/>
  238.   <include name="title_text_focused"/>
  239. </draw_ops>
  240.  
  241. <draw_ops name="title_utility">
  242.   <include name="title_text"/>
  243. </draw_ops>
  244.  
  245. <draw_ops name="title_utility_focused">
  246.   <include name="title_bg"/>
  247.   <include name="title_text_focused"/>
  248. </draw_ops>
  249.  
  250. <frame_style name="normal_unfocused" geometry="normal">
  251.   <piece position="entire_background" draw_ops="outer_bevel"/>
  252.   <piece position="title" draw_ops="title_normal"/>
  253.  
  254.   <!-- we don't specify for prelight, so normal is used -->
  255.   <button function="close" state="normal" draw_ops="close_button"/>
  256.   <button function="close" state="pressed" draw_ops="close_button_pressed"/>
  257.   <button function="minimize" state="normal" draw_ops="minimize_button"/>
  258.   <button function="minimize" state="pressed" draw_ops="minimize_button_pressed"/>
  259.   <button function="maximize" state="normal" draw_ops="maximize_button"/>
  260.   <button function="maximize" state="pressed" draw_ops="maximize_button_pressed"/>
  261.   <button function="menu" state="normal" draw_ops="menu_button"/>
  262.   <button function="menu" state="pressed" draw_ops="menu_button_pressed"/>
  263. </frame_style>
  264.  
  265. <frame_style name="normal_focused" geometry="normal" parent="normal_unfocused">
  266.   <piece position="entire_background" draw_ops="focus_background"/>
  267.   <piece position="title" draw_ops="title_focused"/>
  268. </frame_style>
  269.  
  270. <frame_style name="shaded_focused" geometry="normal" parent="normal_unfocused">
  271.   <piece position="title" draw_ops="title_focused"/>
  272. </frame_style>
  273.  
  274. <frame_style name="maximized_unfocused" geometry="normal_small_borders" parent="normal_unfocused">
  275.   <piece position="entire_background" draw_ops="blank"/>
  276.   <button function="maximize" state="normal" draw_ops="restore_button"/>
  277.   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  278. </frame_style>
  279.  
  280. <frame_style name="maximized_focused" geometry="normal_small_borders" parent="normal_focused">
  281.   <piece position="entire_background" draw_ops="focus_outline"/>
  282.   <button function="maximize" state="normal" draw_ops="restore_button"/>
  283.   <button function="maximize" state="pressed" draw_ops="restore_button_pressed"/>
  284. </frame_style>
  285.  
  286. <frame_style name="utility_unfocused" geometry="utility" parent="normal_unfocused">
  287.   <piece position="title" draw_ops="title_utility"/>
  288. </frame_style>
  289.  
  290. <frame_style name="utility_focused" geometry="utility" parent="normal_focused">
  291.   <piece position="title" draw_ops="title_utility_focused"/>
  292. </frame_style>
  293.  
  294. <frame_style name="border" geometry="border" parent="normal_unfocused">
  295.   <piece position="entire_background" draw_ops="outer_bevel"/>
  296.   <piece position="title" draw_ops="blank"/>
  297. </frame_style>
  298.  
  299. <frame_style_set name="normal">
  300. <frame focus="yes" state="normal" resize="both" style="normal_focused"/>
  301. <frame focus="no" state="normal" resize="both" style="normal_unfocused"/>
  302. <frame focus="yes" state="maximized" style="maximized_focused"/>
  303. <frame focus="no" state="maximized" style="maximized_unfocused"/>
  304. <frame focus="yes" state="shaded" style="shaded_focused"/>
  305. <frame focus="no" state="shaded" style="normal_unfocused"/>
  306. <frame focus="yes" state="maximized_and_shaded" style="maximized_focused"/>
  307. <frame focus="no" state="maximized_and_shaded" style="maximized_unfocused"/>
  308. </frame_style_set>
  309.  
  310. <frame_style_set name="utility" parent="normal">
  311. <frame focus="yes" state="normal" resize="both" style="utility_focused"/>
  312. <frame focus="no" state="normal" resize="both" style="utility_unfocused"/>
  313. <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
  314. <frame focus="yes" state="maximized" style="utility_focused"/>
  315. <frame focus="no" state="maximized" style="utility_unfocused"/>
  316. <frame focus="yes" state="shaded" style="utility_focused"/>
  317. <frame focus="no" state="shaded" style="utility_unfocused"/>
  318. <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
  319. <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
  320. </frame_style_set>
  321.  
  322. <frame_style_set name="border" parent="normal">
  323. <frame focus="yes" state="normal" resize="both" style="border"/>
  324. <frame focus="no" state="normal" resize="both" style="border"/>
  325. <!-- this is a bunch of crack since utility windows shouldn't be maximized -->
  326. <frame focus="yes" state="maximized" style="utility_focused"/>
  327. <frame focus="no" state="maximized" style="utility_unfocused"/>
  328. <frame focus="yes" state="shaded" style="utility_focused"/>
  329. <frame focus="no" state="shaded" style="utility_unfocused"/>
  330. <frame focus="yes" state="maximized_and_shaded" style="utility_focused"/>
  331. <frame focus="no" state="maximized_and_shaded" style="utility_unfocused"/>
  332. </frame_style_set>
  333.  
  334. <window type="normal" style_set="normal"/>
  335. <window type="dialog" style_set="normal"/>
  336. <window type="modal_dialog" style_set="normal"/>
  337. <window type="menu" style_set="normal"/>
  338. <window type="utility" style_set="utility"/>
  339. <window type="border" style_set="border"/>
  340.  
  341. <menu_icon function="close" state="normal" draw_ops="close_button"/>
  342. <menu_icon function="maximize" state="normal" draw_ops="maximize_button"/>
  343. <menu_icon function="unmaximize" state="normal" draw_ops="restore_button"/>
  344. <menu_icon function="minimize" state="normal" draw_ops="minimize_button"/>
  345.  
  346. </metacity_theme>
  347.